package com.example.mqtt.service;

import org.eclipse.paho.client.mqttv3.IMqttMessageListener;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public interface MqttService {

    void publish(String topic, String message) throws MqttException;
    void subscribe(String topic) throws MqttException;
    void setMessageArrivedListener(IMqttMessageListener listener);
}